#pragma once
#include "afxwin.h"
#include "PhotoProject.h"
// CDlgHomeTab dialog

class CDlgHomeTab : public CDialogEx
{
	DECLARE_DYNAMIC(CDlgHomeTab)

public:
	CDlgHomeTab(CWnd* pParent = NULL);   // standard constructor
	virtual ~CDlgHomeTab();

// Dialog Data
	enum { IDD = IDD_TAB_HOME };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	void Resize(int l);
	DECLARE_MESSAGE_MAP()
public:
//	CPhotoEditDlg *m_pDlgMain;
	void Resize(int w,int h);
	void RefreshDraw();
//	void Filter(bool isBlur, int blurRate, bool isEdge,  int threshold);
	CPhotoProject * m_pPhoto;
	CDialogEx *m_pDlgParent;
	CSplitButton m_ctrResize;
	CSplitButton m_ctrImageRotation;
	afx_msg void OnResize100();
	afx_msg void OnRotationFlipvertically();
	afx_msg void OnRotationFliphorizontally();
	afx_msg void OnRotation180();
	afx_msg void OnRotation90ccw();
	afx_msg void OnRotation90cw();
	afx_msg void OnFiltereffectBlur();
	CSplitButton m_ctrColorEffect;
	CSplitButton m_ctrFilterEffect;
	afx_msg void OnFiltereffectMedianblur();
	afx_msg void OnFiltereffectEdge();
	afx_msg void OnColoreffectBrighten();
	afx_msg void OnColoreffectDarken();
	afx_msg void OnColoreffectI();
	afx_msg void OnFiltereffectEroding();
	afx_msg void OnFiltereffectDilating();
	afx_msg void OnColoreffectGrayscale();
	afx_msg void OnResize200();
	afx_msg void OnResize400();
	afx_msg void OnResize640();
	afx_msg void OnResize800();
	afx_msg void OnResize1000();
	afx_msg void OnResize1024();
	afx_msg void OnBnClickedSplitResize();
	afx_msg void OnBnClickedSplitFilter();
	afx_msg void OnFiltereffectBlurandedge();
	afx_msg void OnBnClickedSplitColor();
	afx_msg void OnColoreffectContrastenhancement();
};
